package com.cxria.pattern.intermediary

class Purchase extends AbstractColleague {

    Purchase(AbstractMediator mediator) {
        super(mediator)
    }

    void buyIBMcomputer(int number){
        mediator.execute('purchase.buy', number)
    }

    void refuseBuyIBM(){
        println '不再采购IBM电脑'
    }

}